<template>
    <div>
        <comment :id="id"></comment>
    </div>
</template>

<script>
    import comment from '../subcomponent/comment.vue'
    export default {
        data: function(){
            return {
                id: this.$route.params.id
            }
        },
        // created: function(){

        // },
        // methods: {
        //     getGoodsComments: function(){
        //         this.$http.get('http://127.0.0.1:4000/getGoodsComments?id='+this.id).then( res=>{

        //         })
        //     }
        // },
        components: {
            comment: comment
        }
    }
</script>

<style lang="scss" scoped>
    
</style>